package mc

import (
	"gitee.com/dreamwood/ez-go/db/mgo"
)

const (
	PayCashTypeEventNew           = "erp.PayCashTypeNew"
	PayCashTypeEventBeforeCreate  = "erp.PayCashTypeBeforeCreate"
	PayCashTypeEventBeforeUpdate  = "erp.PayCashTypeBeforeUpdate"
	PayCashTypeEventBeforeSave    = "erp.PayCashTypeBeforeCreate erp.PayCashTypeBeforeUpdate"
	PayCashTypeEventAfterCreate   = "erp.PayCashTypeAfterCreate"
	PayCashTypeEventAfterUpdate   = "erp.PayCashTypeAfterUpdate"
	PayCashTypeEventAfterSave     = "erp.PayCashTypeAfterCreate erp.PayCashTypeAfterUpdate"
	PayCashTypeEventDelete        = "erp.PayCashTypeDelete"
	PayCashTypeAccessControlEvent = "erp.PayCashTypeAccessControl"
)

func GetPayCashTypeConfig() *mgo.DocConfig {
	return PayCashType_Config
}

var PayCashType_Config *mgo.DocConfig

func init() {
	PayCashType_Config = NewPayCashTypeConfig()
}
func NewPayCashTypeConfig() *mgo.DocConfig {
	return &mgo.DocConfig{
		ContainerKey: "erp.PayCashType",
		Fields: []string{
			"name",
		},
		RelationFields:  []string{},
		RelationConfigs: map[string]*mgo.DocRelation{},
		FieldFilter: map[string]*mgo.DocFieldFilter{
			"default": {
				Select: []string{},
				Omit:   []string{},
			},
		},
	}
}
